package com.xoa.dao.reportSettings;

import com.xoa.model.workflow.FlowFormType;
import com.xoa.model.workflow.FlowReport;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FlowReportMapper {

   List<FlowReport> queryReportSettings(Map<String,Object> map);

   int deleteReportSettings(Integer rId);

   int updateReportSettings(Map<String,Object> map);

   List<FlowFormType> querybyFlowIdField(@Param("flowId") String flowId);

   int newReportSettings(Map<String,Object>map);

   List<FlowReport>queryIdReportSettings(Map<String,Object>map);

   //获取数据报表页面
   List<FlowReport> getReportListByUserId(@Param("userId") String userId);

   //根据rid获取一个报表
   FlowReport getReportById(@Param("rid") Integer rid);

   //根据查询条件返回结果
   List<Map<String,Object>> queryReport(Map<String,Object> maps);

   //返回权重
   List<Integer> getweight(Map<String,Object> maps);

   //返回字段值
   List<String> getValue(Map<String,Object> maps);

}
